﻿@{
    Layout = "/Areas/Admin/Views/Shared/Manager.cshtml";
}
<!DOCTYPE html>
@*包含了视频列表信息*@
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>后台测试管理</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

    <script src="~/Content/js/jquery.easyui.min.js"></script>
</head>
@model IEnumerable<Shumei.EFCore.Model.Course>
<body>
    <div>
        <!-- 本课程所包含的视频 -->
        <h3>本课程所包含的视频</h3>

        @*<div class="hr-div"> <hr /></div>
        <div class="table-responsive">
            <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th style="text-align:center;">ID</th>
                        <th style="text-align:center;">描述</th>
                        <th style="text-align:center;">第几个课时</th>
                        <th style="text-align:center;">视频地址</th>
                        <th style="text-align:center;">长度</th>
                        <th style="text-align:center;">
                            <div>
                                <a href="@Url.Action("UploadVideo", "Courses")" class="label label-default">添加新视频</a>
                            </div>
                        </th>

                    </tr>
                </thead>
                <tbody>
                    @{
                        foreach (var m in Model)
                        {
                            <tr style="text-align:center;">
                                <td>@m.Id</td>
                                <td>@m.DesName</td>
                                <td>@m.No</td>
                                <td>@m.VideoUrl</td>
                                <td>@m.VideoLen</td>
                                <td>
                                    <a href="@Url.Action("EditVideo", "Courses", new { id = m.Id })" class="label label-default">编辑</a>
                                    <a href="@Url.Action("DeleteVideo", "Courses", new { id = m.Id })" class="label label-danger">删除</a>
                                </td>

                            </tr>
                        }
                    }
                </tbody>
            </table>

        </div>
        <div style="margin-bottom:30px;">
            <button type="button" class="btn btn-default" aria-label="Left Align">
                <span class="glyphicon glyphicon-menu-left" aria-hidden="true"></span>
            </button>
            <input type="text" style="width:25px;" value="@ViewBag.page" />
            <button type="button" class="btn btn-default" aria-label="Left Align">
                <span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span>
            </button>
            <label>total:@ViewBag.totalPage</label>
        </div>*@
    </div>
</body>
</html>
